from .models import *
from rest_framework.serializers import ModelSerializer

class Cateser(ModelSerializer):
    class Meta:
        model=Cate
        fields="__all__"

class Bookser(ModelSerializer):
    cate = Cateser()
    class Meta:
        model=Books
        fields="__all__"